03. Theory and Concepts: K-means
AI For Trading C1 L2 A03 Theory And Concepts K-Means V1
Understanding Clustering and K-means
What is Clustering?
- Clustering is an unsupervised learning technique.
- Groups similar data points based on criteria.
- Aims to discover patterns or structures within data.
K-means Clustering
- A common partitioning algorithm.
- Divides a dataset into K clusters, each represented by a centroid.
- Iteratively assigns data points to the nearest centroid.
- Updates centroids based on the mean of each cluster's points.
- Continues until centroids stabilize or meet a convergence criterion.
Application Example
- Imagine clustering fruits in a basket based on similarity (apples, bananas, grapes).
- Choose initial representatives randomly.
- Reassign and update representatives until they stabilize.
Practical Applications in Trading
- Sentiment analysis from social media or financial reports to predict stock trends.
- Analyzing relationships among different asset classes for better market insights.
- Segmenting investors by behavior for strategy alignment based on market sentiment and dynamics.